import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FrontDeskMain {

	public static void main(String[] args)
	{
		ApplicationContext context = new ClassPathXmlApplicationContext("beans-front.xml");
		
		Mail mail = new Mail("1234", "US", 1.5);			
		
		FrontDesk frontDesk = (FrontDesk)context.getBean("frontDesk");
		frontDesk.sendMail(mail);				
		
		System.exit(0);
	}
	
}
